﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QUANLYKHACHSAN_N4
{
    public class DgResul
    {
        public static bool ShowDiag(string Text)
        {
            Dialog dg = new Dialog(Text, false);
            return DialogResult.OK == dg.ShowDialog();
        }
        public static bool ShowDiag(string Text,bool OKCancel)
        {
            Dialog dg = new Dialog(Text, OKCancel);
            return DialogResult.OK == dg.ShowDialog();
        }
        public static bool ShowDiag(string Text, Form f)
        {
            f.Opacity = 0;
            Dialog dg = new Dialog(Text, false);
            DialogResult k = dg.ShowDialog();
            f.Opacity = 100;
            return k == DialogResult.OK;
        }
        public static bool ShowDiag(string Text,string Title, Form f)
        {
            f.Opacity = 0;
            Dialog dg = new Dialog(Text, Title, false);
            DialogResult k = dg.ShowDialog();
            f.Opacity = 100;
            return k == DialogResult.OK;
        }

    }
}
